package com.rchat.pocmini.db;

import com.airtalkee.sdk.entity.AirMessage;

import java.util.List;

/**
 * Created by ljd on 2017/3/16.
 */

public interface MessageDao extends BaseDao {

    int getAllMessagesCount(String sid);

    List<AirMessage> loadMessageInfos(String sid, int currentPage, int pageSize);

    AirMessage loadMessageInfo(String messageId);

    void deleteMessage(String messageId);

    void cleanMessageTabByUserId();

    void cleanTable();

    void insertMessage(AirMessage message);

    void batchInsertMessage(List<AirMessage> messages);

    void updateMessage(AirMessage message);

    List<AirMessage> loadPttMessageInfos(String sid, int currentPage, int pageSize);

    List<AirMessage> loadPttMessageInfos(String sid, int offset);
}

